package com.zs.service.impl;

import com.alibaba.dubbo.config.ServiceConfig;
import com.alibaba.dubbo.rpc.service.GenericException;
import com.alibaba.dubbo.rpc.service.GenericService;
import com.zs.service.RadomService;

import java.util.Random;

/**
 * Created by zhangshuqing on 2017/6/4.
 */
public class RadomServiceImpl implements RadomService {
    public String getRadomStr() {
        GenericService genericService=new GenericService() {
            public Object $invoke(String method, String[] parameterTypes, Object[] args) throws GenericException {
                return null;
            }
        };
        ServiceConfig<GenericService> service = new ServiceConfig<GenericService>();
        service.setInterface("");

        Random random=new Random();
        String radomStr=random.nextInt()+""+random.nextDouble();
        return radomStr;
    }
}
